<template>
    <el-breadcrumb separator-class="el-icon-arrow-right" class="bh-breadcrumb">
        <el-breadcrumb-item :to="{ name: 'Index' }"><i class="fa fa-home"></i> 首页</el-breadcrumb-item>
        <el-breadcrumb-item v-for="(b,index) in breadcumb" v-if="b.path.length>0" :to="{ name: b.path }" :key="index">{{b.name}}</el-breadcrumb-item>
        <el-breadcrumb-item v-for="(b,index) in breadcumb" v-if="b.path.length==0" :key="index">{{b.name}}</el-breadcrumb-item>
    </el-breadcrumb>
</template>

<script>
    export default {
        props:["breadcumb"],
    }
</script>

<style scoped>

</style>
